package com.fr.base.core.antlr;

import com.fr.base.core.antlr.collections.AST;

public class CommonAST extends BaseAST
{
  int ttype = 0;
  String text;

  public String getText()
  {
    return this.text;
  }

  public int getType()
  {
    return this.ttype;
  }

  public void initialize(int paramInt, String paramString)
  {
    setType(paramInt);
    setText(paramString);
  }

  public void initialize(AST paramAST)
  {
    setText(paramAST.getText());
    setType(paramAST.getType());
  }

  public CommonAST()
  {
  }

  public CommonAST(Token paramToken)
  {
    initialize(paramToken);
  }

  public void initialize(Token paramToken)
  {
    setText(paramToken.getText());
    setType(paramToken.getType());
  }

  public void setText(String paramString)
  {
    this.text = paramString;
  }

  public void setType(int paramInt)
  {
    this.ttype = paramInt;
  }
}